package com.bf.electroplating.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 雨排口站点基础信息表
 *
 * @author system
 * @since 2025-01-11
 */
@Getter
@Setter
@TableName("rainfall_outlet_site")
@Schema(description = "雨排口站点基础信息表")
public class RainfallOutletSite implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "站点ID（对应接口中的id）")
    @TableField("site_id")
    private Integer siteId;

    @Schema(description = "站点名称")
    @TableField("site_name")
    private String siteName;

    @Schema(description = "站点地址")
    @TableField("site_addr")
    private String siteAddr;

    @Schema(description = "行业名称")
    @TableField("industry_name")
    private String industryName;

    @Schema(description = "基准值")
    @TableField("baseline_value")
    private Integer baselineValue;

    @Schema(description = "站点状态：1-正常，2-异常，3-维护")
    @TableField("site_status")
    private Integer siteStatus;

    @Schema(description = "区域ID")
    @TableField("region_id")
    private Integer regionId;

    @Schema(description = "区域名称")
    @TableField("region_name")
    private String regionName;

    @Schema(description = "经度")
    @TableField("longitude")
    private BigDecimal longitude;

    @Schema(description = "园区ID")
    private String parkId;

    @Schema(description = "纬度")
    @TableField("latitude")
    private BigDecimal latitude;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;
}
